import React, { Component } from 'react'
import { Steps } from 'antd'
const { Step } = Steps
export default class componentName extends Component {
  constructor(props) {
    super(props)
    this.state = {
      current: 0,
      array: ['start', 'doing', 'end'],
    }
  }

  render() {
    return (
      <Steps
        current={this.state.current}
        style={{ padding: '20px' }}
        onChange={(current) => {
          this.setState({ current })
          this.props.onCallback &&
            this.props.onCallback(this.state.array[current])
        }}
      >
        <Step title="开始" />
        <Step title="过度" />
        <Step title="结束" />
      </Steps>
    )
  }
}
